From 1a5eee854437c2d051ddadc9d18e7f6460c1849f Mon Sep 17 00:00:00 2001 From: Cameron McCormack Date: Mon, 16 Mar 2020 11:18:38 +1100 Subject: [PATCH 1/5] Point intrinsic dimension related terms to css-images-3 This allows us to pick up the automatic rotation of the dimensions of images with orientation metadata, such as in JPEG EXIF tags. --- source | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/source b/source index 3f8bf5a8c76..433fb840eee 100644 --- a/source +++ b/source @@ -3449,7 +3449,6 @@ a.setAttribute('href', 'https://example.com/'); // change the content attribute
  • line box
  • out-of-flow
  • in-flow
  • -
  • intrinsic dimensions
  • content area
  • content box
  • border box
  • @@ -3514,9 +3513,6 @@ a.setAttribute('href', 'https://example.com/'); // change the content attribute 'border-right-color' -

    The terms intrinsic width and intrinsic height refer to the width dimension and the height - dimension, respectively, of intrinsic dimensions.

    -

    The basic version of the 'display' property is defined in CSS, and the property is extended by other CSS @@ -3551,10 +3547,19 @@ a.setAttribute('href', 'https://example.com/'); // change the content attribute

  • transparent black
  • -

    The term intrinsic aspect - ratio is used as defined in CSS Image Values and Replaced Content to define - the sizing of replaced content.

    +

    The following terms are defined in CSS Image Values and Replaced Content to + define the sizing of replaced content:

    + +

    The term paint source is used as defined in CSS Image Values and Replaced Content From b07b7782f1145c2d6a4a7257ac080da978532b3a Mon Sep 17 00:00:00 2001 From: Cameron McCormack Date: Mon, 16 Mar 2020 11:21:32 +1100 Subject: [PATCH 2/5] Editorial: punctuation fix --- source | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source b/source index 433fb840eee..955d5f9f7d3 100644 --- a/source +++ b/source @@ -3569,7 +3569,7 @@ a.setAttribute('href', 'https://example.com/'); // change the content attribute

    The term default object size and the 'object-fit' property - are also defined in CSS Image Values and Replaced Content: CSS Image Values and Replaced Content.

    The following features are defined in CSS Backgrounds and Borders: Date: Mon, 16 Mar 2020 13:53:17 +1100 Subject: [PATCH 3/5] Note effect of orientation metadata on naturalWidth and naturalHeight Partially addresses #4495. --- source | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/source b/source index 955d5f9f7d3..f17b73d4e8d 100644 --- a/source +++ b/source @@ -3559,6 +3559,9 @@ a.setAttribute('href', 'https://example.com/'); // change the content attribute height

  • intrinsic width
  • +
  • The 'image-orientation' + property
  • The term paint @@ -26855,6 +26858,14 @@ interface HTMLImageElement : HTMLElement { data-x="'px'">CSS pixels, if the image has intrinsic dimensions and is available, or else 0.

    +
    +

    Since the intrinsic dimensions of an image take into account any + orientation specified in its metadata, naturalWidth + and naturalHeight reflect the dimensions after + applying any rotation required to correctly orient the image, regardless of + the value of the 'image-orientation' property.

    +
    +

    The IDL attribute complete must return true if any of the following conditions is true:

    From d5ebf27087d438294ad36a6ad41137374dcee05d Mon Sep 17 00:00:00 2001 From: Domenic Denicola Date: Mon, 16 Mar 2020 11:37:17 -0400 Subject: [PATCH 4/5] Other fixups to CSS Images spec references - We don't linebreak in the references section uls - It appears the spec name has changed - L. Verou added as an editor - Apparently the spec is split into two now :( --- source | 38 +++++++++++++++----------------------- 1 file changed, 15 insertions(+), 23 deletions(-) diff --git a/source b/source index f17b73d4e8d..1838932f821 100644 --- a/source +++ b/source @@ -3547,33 +3547,22 @@ a.setAttribute('href', 'https://example.com/'); // change the content attribute
  • transparent black
  • -

    The following terms are defined in CSS Image Values and Replaced Content to - define the sizing of replaced content:

    +

    The following terms are defined in CSS Images:

    The term paint - source is used as defined in CSS Image Values and Replaced Content + source is used as defined in CSS Images Level 4 to define the interaction of certain HTML elements with the CSS 'element()' - function.

    - -

    The term default - object size and the 'object-fit' property - are also defined in CSS Image Values and Replaced Content.

    + function.

    The following features are defined in CSS Backgrounds and Borders:

    @@ -124774,7 +124763,7 @@ INSERT INTERFACES HERE
    CSS Style Attributes, T. Çelik, E. Etemad. W3C.
    [CSSBG]
    -
    CSS Backgrounds and Borders , B. Bos, E. Etemad, B. Kemper. W3C.
    +
    CSS Backgrounds and Borders, B. Bos, E. Etemad, B. Kemper. W3C.
    [CSSCASCADE]
    CSS Cascading and Inheritance, E. Etemad, T. Atkins. W3C.
    @@ -124801,7 +124790,10 @@ INSERT INTERFACES HERE
    CSS Grid Layout, T. Atkins, E. Etemad, R. Atanassov. W3C.
    [CSSIMAGES]
    -
    CSS Image Values and Replaced Content Module, E. Etemad, T. Atkins. W3C.
    +
    CSS Images Module, E. Etemad, T. Atkins, L. Verou. W3C.
    + +
    [CSSIMAGES4]
    +
    CSS Images Module Level 4, E. Etemad, T. Atkins, L. Verou. W3C.
    [CSSLISTS]
    CSS Lists and Counters, T. Atkins. W3C.
    From fc117e382eb366adf56af5e8af6e33fce5ca70f4 Mon Sep 17 00:00:00 2001 From: Domenic Denicola Date: Mon, 16 Mar 2020 11:38:29 -0400 Subject: [PATCH 5/5] Note fixups --- source | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/source b/source index 1838932f821..dbcbeba4a33 100644 --- a/source +++ b/source @@ -26847,13 +26847,11 @@ interface HTMLImageElement : HTMLElement { data-x="'px'">CSS pixels, if the image has intrinsic dimensions and is available, or else 0.

    -
    -

    Since the intrinsic dimensions of an image take into account any - orientation specified in its metadata, naturalWidth - and naturalHeight reflect the dimensions after - applying any rotation required to correctly orient the image, regardless of - the value of the 'image-orientation' property.

    -
    +

    Since the intrinsic dimensions of an image take into account any + orientation specified in its metadata, naturalWidth and + naturalHeight reflect the dimensions after applying + any rotation needed to correctly orient the image, regardless of the value of the + 'image-orientation' property.

    The IDL attribute complete must return true if any of the following conditions is true: